<input type="hidden" name="id"  id="id" class="form-control" value="<?php if (!empty($evento)) echo $evento[0]['id']; ?>">
<div class="row form-row">
    <div class="col-md-7">
        <div class="input-with-icon  right">                                       
            <i class=""></i>
            <label class="form-label">Nombre</label>
            <input type="text" name="nombre"  id="nombre" class="form-control" placeholder="Ingrese el nombre de evento" value="<?php if (!empty($evento)) echo $evento[0]['nombre']; ?>"
                   style='text-transform:uppercase' onkeyup='javascript:this.value = this.value.toUpperCase();'
                   >
        </div>
    </div>

    <div class="col-md-5">
        <div class="input-with-icon  right">                                       
            <i class=""></i>
            <label class="form-label">Fecha</label>
            <input type="date" name="fecha"  id="fecha" class="form-control" placeholder="FECHA DEL EVENTO" value="<?php if (!empty($evento)) echo $evento[0]['fecha']; ?>"
                
                   >
        </div>
    </div>



</div>


<div class="row form-row">
    <div class="col-md-8">
        <div class="input-with-icon  right">                                       
            <i class=""></i>
            <label class="form-label">Torneo</label>
            <select  id="poker_torneo_id" name="poker_torneo_id" class="form-control">
                <?php
                foreach ($torneos as $datoC) {
                    if ($evento[0]["poker_torneo_id"] == $datoC["id"]) {
                        echo " <option selected='true' class='select2-results' value='" . $datoC["id"] . "'>" . $datoC["nombre"] . "</option>";
                    } else {
                        echo " <option class='select2-results' value='" . $datoC["id"] . "'>" . $datoC["nombre"] . "</option>";
                    }
                }
                ?>

            </select>
        </div>
    </div>



</div>


<div class="row form-row">
    <div class="col-md-12 center-text" >
        <div id="mensaje_form"></div>   
    </div>
</div>
<div class="modal-footer">
    <button type="button" class="btn btn-default" onclick="clearForm();" data-dismiss="modal">Cancelar</button>
    <button type="submit" id="submit_evento" class="btn btn-success btn-cons">Guardar</button>
    <img id="loading" src="web/assets/img/ajax_load.gif" alt="loading" style="visibility: hidden; "/>
</div>
